<%--
  Created by IntelliJ IDEA.
  User: xiaoji
  Date: 2015/2/15
  Time: 14:29
  To change this template use File | Settings | File Templates.
--%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<c:set value="${pageContext.request.contextPath}" var="path" scope="page"/>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="f" %>
<%@ taglib prefix="spring" uri="/WEB-INF/lib/spring.tld"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>

<style type="text/css">

    .selectedClass{
        color: #FF6600;
    }
    .on{
        /*border-color: #EFBE33;*/
        /*background-color: #FF6600;*/
        /*color: #ffffff;*/
        color: #FF6600;
    }

</style>

<script type="text/javascript">

    $(function(){

        f_aClick()

    });



    function f_aClick(){

        var d_url=document.location.pathname + document.location.search;;


        $(".memberleft").find("a").each(function(i){

            var href = $(this).attr("href");

            if(d_url == href){
                $(this).addClass("on");
            }else{
                $(this).removeClass("on");
            }

        });

    }

</script>
<div id="container">
    <div class="wrapper">
        <div class="memberleft">
            <div class="memberleft_toux clearfix">
                <div class="touxiang">
                    <c:if test="${sessionScope.curUser.headPortrait==null}">
                        <img id="headPortrait" src="${path}/style/common/images/headimg.jpg" width="120" height="120" />
                    </c:if>
                    <c:if test="${sessionScope.curUser.headPortrait!=null}">
                        <img id="headPortrait" src="${path}/${sessionScope.curUser.headPortrait}" width="120" height="120" />
                    </c:if>
                    <div class="member_leftuser">
                        <h3>${sessionScope.curUser.nickname}</h3>
                        <div class="shuxing">
                            <c:if test="${sessionScope.curUser.nameAuth == 101001}">
                                <span><spring:message code='usercenter.index.msg1' /></span>
                            </c:if>
                        </div>
                        <div class="dxts" style="cursor: pointer"><a href="${path}/usercenter/getMessagesById.html"><em id="readMessage"></em><spring:message code='usercenter.index.msg23' /></a></div>
                    </div>
                </div>
                <div class="user_money">
                    <spring:message code='usercenter.index.msg2' />￥<em id="income"></em><spring:message code='usercenter.index.msg3' /><br />
                    <spring:message code='usercenter.index.msg4' />￥<em id="payout"></em><spring:message code='usercenter.index.msg3' /><br />
                    <spring:message code='usercenter.index.msg5' />￥<em id="wallet"></em><spring:message code='usercenter.index.msg3' />
                </div>
                <div class="user_czhi">
                    <a href="${path}/usercenter/topup.html" ><spring:message code='usercenter.index.msg6' /></a>
                    <a href="${path}/usercenter/withdrawal.html"><spring:message code='usercenter.index.msg7' /></a>
                </div>
                <div class="clr"></div>
            </div>
            <div class="member_leftnav">
                <dl class="menu-a">
                    <dt><spring:message code='usercenter.index.msg8' /></dt>
                    <dd>
                        <a href="${path}/usercenter/toTaskManager.html?type=1" ><spring:message code='usercenter.index.msg9' /></a>
                        <a href="${path}/usercenter/proManager.html" ><spring:message code='usercenter.index.msg10' /></a>
                        <a href="${path}/usercenter/getArtistInfo.html"><spring:message code='usercenter.index.msg11' /></a>
                        <a href="${path}/arbitration/toArtistIndex.html"><spring:message code='usercenter.index.msg12' /></a>
                        <a href="${path}/memrace/toArtistIndex.html"><spring:message code='usercenter.index.msg13' /></a>
                    </dd>
                    <dt><spring:message code='usercenter.index.msg14' /></dt>
                    <dd>
                        <a href="${path}/usercenter/toBidTaskManager.html?type=1"><spring:message code='usercenter.index.msg15' /></a>
                        <a href="${path}/usercenter/getUserBaile.html"><spring:message code='usercenter.index.msg16' /></a>
                        <a href="${path}/arbitration/toPrincipalIndex.html" ><spring:message code='usercenter.index.msg17' /></a>
                        <a href="${path}/memrace/toPrincipalIndex.html"><spring:message code='usercenter.index.msg18' /></a>
                    </dd>
                </dl>
            </div>
            <div class="member_leftopr">
                <p><a href="${path}/usercenter/collection.html?type=1"><span class="ico_sc_b"></span><spring:message code='usercenter.index.msg19' /></a></p>
                <p><a href="${path}/usercenter/promote.html"><span class="ico_sc_b"></span><spring:message code='usercenter.index.msg20' /></a></p>
                <p><a href="${path}/usercenter/getUserInfo.html"><span class="ico_cord"></span><spring:message code='usercenter.index.msg21' /></a></p>
                <p><a href="${path}/usercenter/getMessagesById.html"><span class="ico_msg"></span><spring:message code='usercenter.index.msg22' /></a></p>
            </div>
        </div>
<div class="memberright">
<script>
    $.post("${path}/usercenter/getCenterInfo.html",{},function(data){
            if(data.income != undefined){
                $("#income").html(data.income);
            }
            if(data.messTotal != undefined){
                $("#readMessage").html(data.messTotal);
            }
            if(data.payout != undefined){
                $("#payout").html(data.payout);
            }
            if(data.wallet != undefined){
                $("#wallet").html(data.wallet);
            }
    },"json");
</script>